uniform sampler2D tex;		//the texture

void main()
{
	vec4 color = texture2D(tex, gl_TexCoord[0].st;	//texture coordinates are often referred as s,t,r,q. 
	gl_FragColor = color;

}